<template>
    <div class="page_root" :key="queryUpdateFlag" data-page-name="企业信息" data-page-identification="o_lw8o0a0pis">
        <a-spin :spinning="pageLoading.loading" :tip="pageLoading.tip">
            <!-- begin vid_vpuzdpi9p2 面包屑_et1vwcvysb -->
            <a-breadcrumb class="vid_vpuzdpi9p2" style="word-break: break-word">
                <a-breadcrumb-item
                    v-for="(item, index) in vid_vpuzdpi9p2_props_tabConfig"
                    :key="index"
                    @click="handleBreadcrumbJump(router, item)"
                    href=""
                >
                    <template v-if="vid_vpuzdpi9p2_props.rt_showIcon">
                        <span v-if="/^(https?:|mailto:|tel:|data:image)/.test(item.icon)" role="img" class="anticon"
                            ><embed style="width: 1em; height: 1em" :src="item.icon"
                        /></span>
                        <component v-else :is="item.icon" />
                    </template>
                    {{ item.title }}
                </a-breadcrumb-item>
            </a-breadcrumb>
            <!-- end vid_vpuzdpi9p2 面包屑_et1vwcvysb -->
            <!-- begin vid_0a60pz86sp 自定义模板_4wwuemuw46 -->
            <!--            新增企业信息-->
            <a-modal
                :visible="state.addOrEditVisible"
                :title="state.modalTitle"
                destroy-on-close
                centered
                @ok="handleSubmit"
                @cancel="handleCancel"
                :ok-button-props="{ loading: state.okBtnLoading }"
            >
                <div class="my-page">
                    <a-form :model="state.formModel" ref="formRef">
                        <a-row>
                            <a-col :span="24">
                                <a-form-item
                                    label="月份"
                                    :rules="[{ required: true, message: '请选择月份！' }]"
                                    name="month"
                                >
                                    <a-date-picker
                                        style="width: 100%"
                                        v-model:value="state.formModel.month"
                                        picker="month"
                                        value-format="YYYY-MM"
                                    />
                                </a-form-item>
                            </a-col>
                            <a-col :span="24">
                                <a-form-item
                                    label="集团"
                                    :rules="[{ required: true, message: '请选择集团！' }]"
                                    name="groupId"
                                >
                                    <a-select
                                        show-search
                                        :options="state.groupList"
                                        v-model:value="state.formModel.groupId"
                                        placeholder="请选择集团"
                                        :field-names="{ label: 'name', value: 'id' }"
                                        :filterOption="
                                            (input, option) => {
                                                return option.name.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                            }
                                        "
                                        @focus="getGroupList"
                                        @change="state.formModel.enterpriseId = undefined"
                                    />
                                </a-form-item>
                            </a-col>
                            <a-col :span="24">
                                <a-form-item
                                    label="企业简称"
                                    :rules="[{ required: true, message: '请选择企业简称！' }]"
                                    name="enterpriseId"
                                >
                                    <a-select
                                        show-search
                                        :options="state.entrpriseShortNameList"
                                        v-model:value="state.formModel.enterpriseId"
                                        placeholder="请选择企业简称"
                                        :field-names="{ label: 'enterpriseShortName', value: 'id' }"
                                        :filterOption="
                                            (input, option) => {
                                                return (
                                                    option.enterpriseShortName
                                                        .toLowerCase()
                                                        .indexOf(input.toLowerCase()) >= 0
                                                )
                                            }
                                        "
                                        @focus="getEnterpriseShortNameList"
                                    />
                                </a-form-item>
                            </a-col>

                            <a-col :span="24">
                                <a-form-item
                                    label="水泥/熟料品种"
                                    :rules="[{ required: true, message: '请选择水泥/熟料品种！' }]"
                                    name="cementTypeId"
                                >
                                    <a-select
                                        allow-clear
                                        show-search
                                        :options="state.breedList"
                                        v-model:value="state.formModel.cementTypeId"
                                        placeholder="请选择水泥/熟料品种"
                                        :field-names="{ label: 'name', value: 'id' }"
                                        :filterOption="
                                            (input, option) => {
                                                return option.name.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                            }
                                        "
                                        show-arrow
                                        @focus="getBreedList"
                                    />
                                </a-form-item>
                            </a-col>
                            <a-col :span="24">
                                <a-form-item
                                    label="包装方式"
                                    :rules="[{ required: true, message: '请选择包装方式！' }]"
                                    name="packTypeId"
                                >
                                    <a-select
                                        show-search
                                        allow-clear
                                        v-model:value="state.formModel.packTypeId"
                                        placeholder="请选择包装方式"
                                        :options="state.packgaeTypeList"
                                        :field-names="{ label: 'comments', value: 'id' }"
                                        :filterOption="
                                            (input, option) => {
                                                return option.comments.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                            }
                                        "
                                        @focus="getPackagingType"
                                    />
                                </a-form-item>
                            </a-col>
                        </a-row>
                        <a-row>
                            <a-col :span="24">
                                <a-form-item
                                    label="变动成本(元/吨)"
                                    :rules="[{ required: true, message: '变动成本(元/吨)！' }]"
                                    name="variableUnitCost"
                                >
                                    <a-input-number
                                        min="0"
                                        precision="2"
                                        v-model:value="state.formModel.variableUnitCost"
                                        placeholder="请输入变动成本(元/吨)"
                                    />
                                </a-form-item>
                            </a-col>
                            <a-col :span="24">
                                <a-form-item label="备注">
                                    <a-textarea v-model:value="state.formModel.remarks" placeholder="请输入备注" />
                                </a-form-item>
                            </a-col>
                        </a-row>
                    </a-form>
                </div>
            </a-modal>
            <!--            新增企业信息-->
            <div class="body">
                <div class="top-search">
                    <a-row :gutter="24">
                        <a-col :span="5">
                            <a-form-item label="月份" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
                                <a-date-picker
                                    style="width: 100%"
                                    v-model:value="state.month"
                                    picker="month"
                                    value-format="YYYY-MM"
                                />
                            </a-form-item>
                        </a-col>
                        <a-col :span="5">
                            <a-form-item label="集团" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
                                <a-select
                                    allow-clear
                                    show-search
                                    v-model:value="state.groupName"
                                    placeholder="请选择集团"
                                    :options="state.groupList"
                                    :field-names="{ label: 'name', value: 'id' }"
                                    :filterOption="
                                        (input, option) => {
                                            return option.name.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                        }
                                    "
                                    @focus="getGroupList"
                                />
                            </a-form-item>
                        </a-col>
                        <a-col :span="5">
                            <a-form-item label="企业简称" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
                                <a-select
                                    allow-clear
                                    show-search
                                    :options="state.entrpriseShortNameList"
                                    v-model:value="state.enterpriseId"
                                    placeholder="请选择企业简称"
                                    :field-names="{ label: 'enterpriseShortName', value: 'id' }"
                                    :filterOption="
                                        (input, option) => {
                                            return (
                                                option.enterpriseShortName.toLowerCase().indexOf(input.toLowerCase()) >=
                                                0
                                            )
                                        }
                                    "
                                    show-arrow
                                    @focus="getEnterpriseShortNameList"
                                />
                            </a-form-item>
                        </a-col>
                        <a-col :span="5">
                            <a-form-item label="水泥/熟料品种" :labelCol="{ span: 8 }" :wrapperCol="{ span: 16 }">
                                <a-select
                                    allow-clear
                                    show-search
                                    :options="state.breedList"
                                    v-model:value="state.cementTypeId"
                                    placeholder="请选择水泥/熟料品种"
                                    :field-names="{ label: 'name', value: 'id' }"
                                    :filterOption="
                                        (input, option) => {
                                            return option.name.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                        }
                                    "
                                    show-arrow
                                    @focus="getBreedList"
                                />
                            </a-form-item>
                        </a-col>
                        <a-col>
                            <a-space>
                                <a-button type="primary" @click="getData(false)">查询</a-button>
                                <a-button type="primary" ghost @click="resetData">重置</a-button>
                            </a-space>
                        </a-col>
                    </a-row>
                </div>
                <div class="content">
                    <div class="content-title">
                        <div class="tip">
                            <div class="tip-msg">成本管理</div>
                        </div>
                        <div class="button-group">
                            <a-space>
                                <a-button type="primary" @click="handleAdd">新建</a-button>
                                <a-upload
                                    :before-upload="handleImport"
                                    :file-list="[]"
                                    accept=".xlsx, image/*, .docx, .rp, .xls"
                                >
                                    <a-button type="primary" ghost>导入</a-button>
                                </a-upload>
                                <a-button type="primary" ghost @click="handleDownLoadTemplate">下载模板</a-button>
                                <!--<a-button type="primary" ghost @click="handleExport">导出</a-button> -->
                            </a-space>
                        </div>
                    </div>
                    <div class="default-table">
                        <a-table
                            :scroll="{ x: 'max-content' }"
                            :columns="columns"
                            :data-source="state.dataSource"
                            bordered
                            :loading="state.spinng"
                            :pagination="pagination"
                            @change="handleTableChange"
                        >
                            <template #bodyCell="{ column, record, text, index }">
                                <template v-if="column.dataIndex === 'count'">
                                    {{ index + 1 }}
                                </template>
                                <template v-if="column.dataIndex === 'opration'">
                                    <a-space>
                                        <a-button type="link" @click="handleEdit(record)">编辑</a-button>
                                        <a-popconfirm @confirm="handleDelete(record)" title="确定删除吗？">
                                            <a-button type="link">删除</a-button>
                                        </a-popconfirm>
                                    </a-space>
                                </template>
                            </template>
                        </a-table>
                    </div>
                </div>
            </div>
            <!-- end vid_0a60pz86sp 自定义模板_4wwuemuw46 -->
        </a-spin>
    </div>
</template>
<script setup lang="tsx">
    import {
        h,
        ref,
        reactive,
        toRaw,
        markRaw,
        watch,
        computed,
        onBeforeMount,
        onMounted,
        onBeforeUnmount,
        onUnmounted,
        onActivated,
        onDeactivated
    } from 'vue'
    import { useRoute, useRouter } from 'vue-router'
    const router = useRouter()
    const route = useRoute()
    import { get, post, put, del, request, requestWithHeaders } from '@/utils/http/Axios'
    import {
        cloneDeep,
        localGet,
        merge,
        getDifferenceArray,
        traversalTreeStructure,
        checkCaseCondition,
        renderStringInTemplate,
        handleBreadcrumbJump,
        throttle,
        permission,
        getComponentParamsValue
    } from '@/utils/index'
    import { isNullOrEmpty, isEmptyArr, isNullOrUnDef, isContained, isArray, isEmpty, isObject } from '@/utils/is'
    import dayjs from 'dayjs'
    import { getPagePcChartsDataSourceConvert } from '@/utils/chart'
    import { message, notification, Modal } from 'ant-design-vue'
    import {
        propertyFormatByNumber,
        propertyFormatByPercentage,
        propertyFormatByDate,
        parseSubFromDataList
    } from '@/utils/format'
    import colorTheme from '@/design/custom-theme.json'
    /*** PUBLISH_EXEGESIS ***
 import UserTableRecords from '@/model/UserTableRecords';
 import { getAppBaseUrl } from '@/utils/index';
 import { sendToken } from "@/hooks/useIframeToken";
 import { useSystemStore } from "@/store/modules/system";
 const systemStore = useSystemStore();
 *** PUBLISH_EXEGESIS ***/

    // 获取传入的流程ID和组件参数
    const props = defineProps({
        'processInstanceId': {
            type: [String, Number, Boolean],
            default: undefined
        }
    })
    const immediateWatch = (source, callback) => {
        watch(source, callback, { deep: true, immediate: true })
    }

    /* -------------------------- 属性定义 -------------------------- */

    const setTimeOutList = []
    const pageLoading = reactive({
        loading: false,
        tip: undefined
    })
    const authInfo = localGet('app-user-store')

    const vid_vpuzdpi9p2_props = reactive({
        rt_showIcon: false
    })

    // 处理校验
    const setSubFormName = (parentInfo, name) => {
        return [parentInfo.parents, parentInfo.cycleIndex, name]
    }

    /* ========================== 属性定义 ========================== */

    /* -------------------------- 元素数据引用 -------------------------- */

    /* ========================== 元素数据引用 ========================== */

    /* -------------------------- 页面数据 -------------------------- */

    /* ========================== 页面数据 ========================== */

    /* -------------------------- 响应 -------------------------- */

    /* ========================== 响应 ========================== */

    /* -------------------------- 函数 -------------------------- */

    /* ========================== 函数 ========================== */

    /* -------------------------- 页面参数 -------------------------- */

    const pageParameter_state = reactive({
        'processInstanceId': props.processInstanceId ?? route.query.processInstanceId
    })

    /* ========================== 页面参数 ========================== */

    /* -------------------------- 组件事件处理方法 -------------------------- */

    // ---------------------------- 组件数据同步 ----------------------------

    // ============================ 组件数据同步 ============================

    /* ========================== 组件事件处理方法 ========================== */

    /* -------------------------- 生命周期 -------------------------- */
    // 用于参数变更后重新执行自定义指令
    const queryUpdateFlag = ref(0)
    onMounted(() => {})

    onUnmounted(() => {
        // 销毁定时器
        setTimeOutList.forEach(({ repeat, timer }) => {
            repeat ? clearInterval(timer) : clearTimeout(timer)
        })
    })

    /* ========================== 生命周期 ========================== */

    /* -------------------------- 数据关联处理 -------------------------- */

    /* -------------------------- 表单数据同步 -------------------------- */
    /* ========================== 表单数据同步 ========================== */

    /* ========================== 数据关联处理 ========================== */

    /* -------------------------- 不同组件自定义的处理逻辑 -------------------------- */
    const vid_vpuzdpi9p2_props_tabConfig = computed(() => {
        const initValue = [
            {
                'key': 'tab1',
                'title': '基础信息',
                'targetPage': { 'settingType': '', 'url': '', 'customUrl': '' },
                'icon': '',
                'parameter': [],
                'applicationId': 3000000036,
                'query': {}
            },
            {
                'key': 'tab2',
                'title': '企业信息',
                'icon': '',
                'targetPage': { 'settingType': '', 'url': '', 'customUrl': '' },
                'parameter': [],
                'applicationId': 3000000036,
                'query': {}
            }
        ]
        return initValue
    })
    /*** PUBLISH_EXEGESIS ***
 systemStore.addBreadcrumbInfo(vid_vpuzdpi9p2_props_tabConfig.value);
 *** PUBLISH_EXEGESIS ***/
    /* ========================== 不同组件自定义的处理逻辑 ========================== */

    // ================================定制化逻辑========================================
    onMounted(() => {
        getData()
    })
    const state = reactive({
        month: undefined,
        cementTypeId: undefined,
        groupName: undefined,
        enterpriseId: undefined,
        groupList: [],
        entrpriseShortNameList: [],
        breedList: [],
        productList: [],
        addOrEditVisible: false,
        modalTitle: '新建企业',
        formModel: {
            groupId: undefined,
            enterpriseId: undefined,
            cementTypeId: undefined,
            variableUnitCost: undefined,
            monthFixedCost: undefined,
            remarks: undefined,
            month: undefined,
            packTypeId: undefined
        },
        dataSource: [],
        okBtnLoading: false,
        spinng: false,
        packgaeTypeList: []
    })
    const currentData = ref({})
    const columns = [
        {
            title: '序号',
            align: 'center',
            dataIndex: 'count'
        },
        {
            title: '月份',
            align: 'center',
            dataIndex: 'month'
        },
        {
            title: '集团',
            align: 'center',
            dataIndex: 'groupName'
        },
        {
            title: '企业简称',
            align: 'center',
            dataIndex: 'enterpriseShortName'
        },
        {
            title: '水泥/熟料品种',
            align: 'center',
            dataIndex: 'cementTypeName'
        },
        {
            title: '包装方式',
            align: 'center',
            dataIndex: 'packTypeName'
        },
        {
            title: '变动成本(元/吨)',
            align: 'center',
            dataIndex: 'variableUnitCost'
        },
        {
            title: '更新人',
            align: 'center',
            dataIndex: 'lastModifyByName'
        },
        {
            title: '更新时间',
            align: 'center',
            dataIndex: 'lastModifyDate',
            sorter: (a, b) => dayjs(a.lastModifyDate).unix() - dayjs(b.lastModifyDate).unix(), // 使用 dayjs 进行时间比较
            sortDirections: ['ascend', 'descend'] // 可选配置排序方向
        },
        {
            title: '备注',
            align: 'center',
            dataIndex: 'remarks'
        },
        {
            title: '操作',
            width: 150,
            fixed: 'right',
            align: 'center',
            dataIndex: 'opration'
        }
    ]
    function getGroupList() {
        post(`/dynamic-price/api/v1/base_info/search`, {
            filter: {
                baseTypeId: 1
            },
            pageSize: 9999,
            pageNo: 1
        }).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            state.groupList = data.data.content
        })
    }
    // 获取简称
    function getEnterpriseShortNameList() {
        post('/dynamic-price/api/v1/enterprise_info/search', {
            filter: {
                groupId: state.formModel.groupId
            },
            pageSize: 9999,
            pageNo: 1
        }).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            state.entrpriseShortNameList = data.data.content
        })
    }
    // 获取品种
    function getBreedList() {
        post('/dynamic-price/api/v1/base_info/search', {
            filter: {
                baseTypeId: 2
            },
            pageSize: 9999,
            pageNo: 1
        }).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            state.breedList = data.data.content
        })
    }
    // 包装方式
    function getPackagingType() {
        post('/dynamic-price/api/v1/base_info/search', {
            'filter': {
                'baseTypeId': 5
            },
            'pageSize': 9999,
            'pageNo': 1
        }).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            state.packgaeTypeList = data.data.content
        })
    }
    const pagination = ref({
        current: 1,
        pageSize: 10,
        total: 0,
        showSizeChanger: true,
        showTotal: (total, range) =>
            `共 ${total} 条 第 ${pagination.value.current}/${Math.ceil(
                pagination.value.total / pagination.value.pageSize
            )} 页`,
        showQuickJumper: true // 显示快捷跳转
    })
    function resetPagination() {
        pagination.value.current = 1
        pagination.value.pageSize = 10
    }
    // 获取数据
    function getData(flag) {
        if (!flag) {
            resetPagination()
        }
        state.spinng = true
        post('/dynamic-price/api/v1/enterprise_cost/search', {
            filter: {
                groupId: state.groupName,
                enterpriseId: state.enterpriseId,
                cementTypeId: state.cementTypeId,
                month: state.month
            },
            pageSize: pagination.value.pageSize,
            pageNo: pagination.value.current
        })
            .then(data => {
                if (data.status !== 'success') {
                    message.error(data.errorMsg)
                    return
                }
                state.dataSource = data.data.content
                pagination.value.total = data.data.totalElements
            })
            .finally(() => {
                state.spinng = false
                currentData.value = {}
            })
    }
    // 当分页变化时，触发获取数据
    const handleTableChange = ({ current, pageSize, total }) => {
        pagination.value.current = current
        pagination.value.pageSize = pageSize
        getData(true)
    }
    function resetData() {
        state.groupName = state.enterpriseId = state.cementTypeId = state.month = undefined
        pagination.value.current = 1
        pagination.value.pageSize = 10
        getData()
    }
    //     新建
    function handleAdd() {
        state.addOrEditVisible = true
        state.modalTitle = '新建'
    }
    //     导入
    function handleImport(file) {
        const data = new FormData()
        data.append('file', file)
        post(`/dynamic-price/api/v1/data/import/enterprise_cost`, data).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            message.success('导入成功')
            // 成功后刷新列表
            getData()
        })
    }
    //     下载模板
    function handleDownLoadTemplate() {
        function downloadExcel(response, name) {
            const blob = new Blob([response], {
                type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
            })
            const downloadElement = document.createElement('a')
            const href = window.URL.createObjectURL(blob) // 创建下载的链接
            downloadElement.href = href
            downloadElement.download = name // 下载后文件名
            document.body.appendChild(downloadElement)
            downloadElement.click() // 点击下载
            document.body.removeChild(downloadElement) // 下载完成移除元素
            window.URL.revokeObjectURL(href)
            return href
        }

        get(`/dynamic-price/api/v1/template/download/enterprise_cost`, null, {
            responseType: 'arraybuffer'
        }).then(data => {
            downloadExcel(data, '企业成本.xlsx')
        })
    }
    //     导出
    function handleExport() {}
    //     编辑
    async function handleEdit(record) {
        await getGroupList()
        getEnterpriseShortNameList()
        getBreedList()
        getPackagingType()
        currentData.value = record
        state.formModel = cloneDeep(record)
        state.modalTitle = '编辑'
        state.addOrEditVisible = true
    }
    //     删除
    function handleDelete(record) {
        del(`/dynamic-price/api/v1/enterprise_cost/${record.id}`).then(data => {
            if (data.status !== 'success') {
                message.error(data.errorMsg)
                return
            }
            message.success('删除成功')
            getData(true)
        })
    }
    // 开关
    const formRef = ref(null)
    //     保存
    function handleSubmit() {
        formRef.value.validate().then(() => {
            state.okBtnLoading = true
            if (currentData.value.id) {
                put(`/dynamic-price/api/v1/enterprise_cost/${currentData.value.id}`, {
                    ...state.formModel
                })
                    .then(data => {
                        if (data.status !== 'success') {
                            message.error(data.errorMsg)
                            return
                        }
                        message.success('修改成功')
                        handleCancel()
                        getData(true)
                    })
                    .finally(() => {
                        state.okBtnLoading = false
                    })
            } else {
                post('/dynamic-price/api/v1/enterprise_cost', {
                    ...state.formModel
                })
                    .then(data => {
                        if (data.status !== 'success') {
                            message.error(data.errorMsg)
                            return
                        }
                        message.success('新建成功')
                        handleCancel()
                        getData()
                    })
                    .finally(() => {
                        state.okBtnLoading = false
                    })
            }
        })
    }
    function handleCancel() {
        state.formModel = {
            groupId: undefined,
            enterpriseId: undefined,
            cementTypeId: undefined,
            variableUnitCost: undefined,
            monthFixedCost: undefined,
            remarks: undefined,
            month: undefined,
            packTypeId: undefined
        }
        currentData.value = {}
        state.addOrEditVisible = false
    }
</script>
<style lang="less" scoped>
    .vid_vpuzdpi9p2 :deep(a) {
        color: undefined;
    }
    :deep(.vid_vpuzdpi9p2.@{ant-prefix}-breadcrumb) > span:last-child a {
        color: undefined;
        opacity: 0.75;
    }
    .vid_vpuzdpi9p2 {
        height: 40px;
        display: flex;
        align-items: center;
        flex-wrap: undefined;
        margin-bottom: 24px;
        background-color: #ffffff;
    }
    .page_root {
        width: 100%;
        height: 100%;
        overflow: auto;
    }
    .page_root :deep(.@{ant-prefix}-spin-nested-loading),
    .page_root :deep(.@{ant-prefix}-spin-container) {
        height: 100%;
    }
    .page_root :deep(.@{ant-prefix}-spin-container .@{ant-prefix}-table-wrapper) {
        display: flex;
        flex-flow: column nowrap;
        justify-content: flex-start;
    }
    .page_root :deep(.@{ant-prefix}-table) {
        flex: auto;
        overflow: auto;
    }
    .table-moreBtn_down {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100px;
    }

    .table-moreBtn_menu :deep(.table-moreBtn_menu-item):hover {
        background: #ebf1ff;
    }

    /*  表格树结构样式处理，展开按钮层级增加*/
    :deep(.@{ant-prefix}-table-row-expand-icon) {
        z-index: 1;
    }
    /*  表格树结构 由于每个表格项采用自定义组件，使用绝对定位布局，开启树结构导致显示异常，暂时使用层级定位位置 */
    :deep(.@{ant-prefix}-table-row-level-1 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
        left: 15px !important;
        width: calc(100% - 15px);
    }
    :deep(.@{ant-prefix}-table-row-level-2 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
        left: 30px !important;
        width: calc(100% - 30px);
    }
    :deep(.@{ant-prefix}-table-row-level-3 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
        left: 45px !important;
        width: calc(100% - 45px);
    }
    :deep(.@{ant-prefix}-table-row-level-4 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
        left: 60px !important;
        width: calc(100% - 60px);
    }

    /* 穿梭框改变默认样式，为根据组件样式控制左右栏宽度。 */
    :deep(.@{ant-prefix}-transfer-list) {
        height: 100%;
        width: 50%;
    }
    .vid_vpuzdpi9p2 :deep(a) {
        color: undefined;
    }
    :deep(.vid_vpuzdpi9p2.@{ant-prefix}-breadcrumb) > span:last-child a {
        color: undefined;
        opacity: 0.75;
    }

    /*样式*/
    .body {
        padding: 0 24px;
    }
    .page_root {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .top-search {
        height: 68px;
        background-color: #fff;
        padding: 16px 24px;
        border-radius: 4px;
        margin-bottom: 16px;
    }
    .content {
        background-color: #fff;
        border-radius: 4px;
        padding: 24px;
        padding-top: 0;
        height: calc(100vh - 210px);
        overflow: auto;
        padding-bottom: 8px;
    }
    /*表格按钮通用样式*/
    .default-table :deep(.@{ant-prefix}-table-thead) > tr > th {
        background: #f5f5f5;
        font-size: 14px;
        font-family: arial, helvetica, 'microsoft yahei';
        font-weight: 600;
        color: #262626;
        padding: 8px 16px;
    }
    .default-table :deep(.@{ant-prefix}-table-tbody) tr > td {
        font-size: 14px;
        font-family: arial, helvetica, 'microsoft yahei';
        font-weight: 400;
        color: #595959;
        border-bottom: 1px solid #d9d9d9;
        padding: 6px 16px;
        word-break: break-all;
    }
    /*表格按钮通用样式*/
    .content-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .tip {
        height: 60px;
        display: flex;
        align-items: center;
    }
    .tip-msg {
        height: 20px;
        border-left: 4px solid #d7000f;
        font-size: 16px;
        line-height: 20px;
        padding-left: 8px;
        font-weight: 600;
    }
    /*表格顶部的标题*/
    .my-page :deep(.ant3-form-item-label) {
        width: 120px;
    }
    .my-page :deep(.ant3-input-number) {
        width: 100%;
    }
</style>
